package com.demo.mybatisx.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;

import com.demo.mybatisx.pojo.Course;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

/**
 * @Entity com.demo.mybatisx.pojo.Course
 */
@Repository
public interface CourseMapper extends BaseMapper<Course> {
    //  mybatis_x插件快速生成
    int insertSelective(Course course);

    int deleteByCourseIdAndCourseName(@Param("courseId") int courseId, @Param("courseName") String courseName);

    int updateCourseNameByCourseId(@Param("courseName") String courseName, @Param("courseId") int courseId);

    List<Course> selectAllByCourseId(@Param("courseId") int courseId);
}




